package com.huadi.ssm.service;


import com.huadi.ssm.mapper.UserMapper;
import com.huadi.ssm.po.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//ctrl+shift+o去掉多余的import

//alt+enter

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int addUser(User user) {
        return 0;
    }

    @Override
    public int delUserById(int id) {
        return 0;
    }

    @Override
    public int updateUser(User user) {
        return 0;
    }

    @Override
    public User queryUserByid(int id) {
        return null;
    }

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
